import requests from '@/api/request'
// const SERVER_URL = 'user'
export default {
  // 查询
  postQueryLoanData (data) {
    return requests({
      url: `v1/api/pay/quota/draw/queryByCondition`,
      method: 'post',
      data
    })
  },
  // 通过ID查询额度支取详情
  postQueryByIdLoanData (data) {
    return requests({
      url: `v1/api/pay/quota/draw/queryById/${data}`,
      method: 'get'
    })
  },
  // 通过caseId查询额度详情
  postQueryByCaseIdLoanData (data) {
    return requests({
      url: `v1/api/case/case/basic/queryQuotaById/${data}`,
      method: 'get'
    })
  },
  // 通提交审批
  postSubmitLoanData (data) {
    return requests({
      url: `v1/api/pay/quota/draw/audit/submit`,
      method: 'post',
      data
    })
  }
}
